package com.UnionPayCenter.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Param;

public interface DataBoardMapper {

    Integer getTodayChargeAmount(@Param("shopId")Integer shopId, @Param("startTime")Date startTime, @Param("endTime")Date endTime);

    Integer getRegisterUserCount(@Param("shopId")Integer shopId, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("isToday")String isToday);

    Integer getDeliveredCouponCount(@Param("shopId")Integer shopId, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("isToday")String isToday);

    Integer getPaidOrderCount(@Param("shopId")Integer shopId, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("isToday")String isToday);
    
    Integer getPaidAmount(@Param("shopId")Integer shopId, @Param("startTime")Date startTime, @Param("endTime")Date endTime, @Param("isToday")String isToday);

    Integer getHistoryTotalAmount(@Param("shopId")Integer shopId, @Param("cutoffTime")Date cutoffTime);
    
    Integer getUsedCouponCount(@Param("shopId")Integer shopId, @Param("cutoffTime")Date cutoffTime);

}
